import { instance as request } from "../utils/request";
// 登录
export const register = (data: any) => {
  return request({
    url: "/adduser",
    method: "post",
    data,
  });
};

export const login = (data: any) => {
  return request({
    url: "/login",
    method: "post",
    data,
  });
};

export const auth = () => {
  return request({
    url: "/auth",
    method: "get",
  });
};



export const upload = (data: any) => {
  return request({
    url: "/upload",
    method: "post",
    data
  });
};

export const delfile = (data: any) => {
  return request({
    url: "/delfile",
    method: "post",
    data
  });
};
